package com.zhentao.controller;


import com.zhentao.model.common.dtos.ResponseResult;
import com.zhentao.service.ICdzOrdersService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * <p>
 * 兑换记录表 前端控制器
 * </p>
 *
 * @author mp
 * @since 2025-01-05
 */
@RestController
@RequestMapping("/user")
public class CdzOrdersController {

    @Resource
    private ICdzOrdersService cdzOrdersService;

    @PostMapping("/ordersOne")
    public ResponseResult ordersOne(@RequestParam("id") Integer id) {
        return cdzOrdersService.ordersOne(id);
    }

    @GetMapping("/getOneOrderUserId")
    public ResponseResult getOneUserId() {
        return cdzOrdersService.getOneUserId();
    }

}

